package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.HmSubjectsDirectorys;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface DirectorysMapper extends BaseMapper<HmSubjectsDirectorys> {
    @Select("select username from bs_user where id= #{createID}")
    String selectName(Integer createID);
    @Select("select subjectName from hm_subjects where id= #{subjectID}")
    String selectSubject(Integer subjectID);
}
